<template>
	<view v-if="store.isFuJing() && detalisData.reportStatus == 0 && !store.isMe(detalisData.userId)" class="btn_detalis1 btn_blue font28" @click="shangbao">上报</view>
	<view class="btn_detalis btn_zuhe" v-if="!store.isFuJing() && detalisData.reportStatus == 0 && store.isMe(detalisData.userId)">
		<view class="enit btn_blue" @click="() => edit(detalisData.id)">编辑</view>
		<view class="delete" @click="deleteItem">
			<up-icon size="48rpx" :name="config.getImage('delete_hei')"></up-icon>
		</view>
	</view>
</template>

<script setup>
	import config from '@/config.js';
	import { usersStore } from 'store/users.js';
	const store = usersStore();
	const props = defineProps({
		detalisData: {
			type: Object,
		}
	});
	const emit = defineEmits(['shangbao', 'edit','deleteItem']);
	const shangbao = () => {
		emit('shangbao', '点上报了');
	};
	const edit = (id) => {
		emit('edit', id);
	};
	const deleteItem = () => {
		emit('deleteItem', '点删除了');
	};
</script>

<style lang="scss" scoped></style>
